const router = require('koa-router')();
const UserController = require('../controller/user')

router.prefix('/api')
// 登陆
router.post('/login', UserController.login)
// 注册 
router.post('/register', UserController.register)
// 操作 blogs
router.post('/add', UserController.add)
router.delete('/delete', UserController.delete)
router.get('/findAll', UserController.findAll)
router.put('/update', UserController.update)


module.exports = router;